package com.yihu.dataService.hessian.mongodb.interfaceService;

import com.yihu.article.beans.UserQuery;
import com.yihu.beans.ResultVO;
import com.yihu.beans.user.User;

/**
 * 
 * @author Aaron
 *
 */
public interface UserHService {
	public ResultVO addUser(String userJson);
	public ResultVO deleteUser(long id);
	public String getUserById(long id);	
	public ResultVO updateUserByid(String articleJson);
	public String getUsersPaging(String queryJson);
	public String login(String userJson);
	public ResultVO changePassword(String userJson);
	public String isValidOfUser(long userid);
	public ResultVO logout(long userId);	
	public long count(UserQuery user);
	public Object getPriviledgesByUserId(long userId);
	public Object setAgentLevel(User user);
	public Object setUserLevel(User user);
	public User getUserByOpenid(String openid);
}
